package cn.edu.sgu.www.mhxysy.dto.qiling;

import cn.edu.sgu.www.mhxysy.consts.CustomMessages;
import cn.edu.sgu.www.mhxysy.dto.DataTransferObject;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;

/**
 * @author 沐雨橙风ιε
 * @version 1.0
 */
@Data
@ApiModel
public class QilingTaozhuangEffectDTO implements DataTransferObject {

	@ApiModelProperty(value = "ID")
	private Integer id;

	/**
	 * 套装件数
	 */
	@Range(min = 2, max = 6, message = "生效件数" + CustomMessages.ILLEGAL)
	@NotNull(message = "套装件数" + CustomMessages.NOT_NULL)
	@ApiModelProperty(value = "套装件数", required = true)
	private Integer count;

	/**
	 * 器灵套装类型ID
	 */
	@Positive(message = "器灵套装类型ID" + CustomMessages.ILLEGAL)
	@NotNull(message = "器灵套装类型" + CustomMessages.ID_NOT_NULL)
	@ApiModelProperty(value = "器灵套装类型ID", required = true)
	private Integer taozhuangId;

	/**
	 * 属性ID
	 */
	@ApiModelProperty(value = "属性ID")
	private Integer propertyId;

	/**
	 * 属性数值
	 */
	@Positive(message = "属性数值" + CustomMessages.ILLEGAL)
	@NotNull(message = "属性数值" + CustomMessages.NOT_NULL)
	@ApiModelProperty(value = "增加数值", required = true)
	private Integer propertyValue;
}